package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 秒杀信息对象 seckill_info
 * 
 * @author kinglu
 * @date 2021-11-30
 */
public class SeckillInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 秒杀编号 */
    private Long seckillId;

    /** 主播id */
    @Excel(name = "主播id")
    private Long userId;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String seckillName;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    /** 数量 */
    @Excel(name = "数量")
    private Long seckillNum;

    /** 截至时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "截至时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    /** 状态 */
    @Excel(name = "状态")
    private String seckillType;

    /** 备注 */
    @Excel(name = "备注")
    private String memo;

    public void setSeckillId(Long seckillId) 
    {
        this.seckillId = seckillId;
    }

    public Long getSeckillId() 
    {
        return seckillId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setSeckillName(String seckillName) 
    {
        this.seckillName = seckillName;
    }

    public String getSeckillName() 
    {
        return seckillName;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setSeckillNum(Long seckillNum) 
    {
        this.seckillNum = seckillNum;
    }

    public Long getSeckillNum() 
    {
        return seckillNum;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setSeckillType(String seckillType) 
    {
        this.seckillType = seckillType;
    }

    public String getSeckillType() 
    {
        return seckillType;
    }
    public void setMemo(String memo) 
    {
        this.memo = memo;
    }

    public String getMemo() 
    {
        return memo;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("seckillId", getSeckillId())
            .append("userId", getUserId())
            .append("seckillName", getSeckillName())
            .append("startTime", getStartTime())
            .append("seckillNum", getSeckillNum())
            .append("endTime", getEndTime())
            .append("seckillType", getSeckillType())
            .append("memo", getMemo())
            .toString();
    }
}
